package com.atguigu.yygh.email.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantEmailUtils implements InitializingBean {

	@Value("${spring.mail.username}")
	private String sendUser;

	public static String SEND_USER;

	@Override
	public void afterPropertiesSet() throws Exception {
		SEND_USER = sendUser;
	}
}
